@import './modules/reset.scss';
@import './modules/header.scss';
@import './modules/footer.scss';


// mixin混合：定义样式片段
// 带参数默认值的
@mixin center ($px:1220px) {
   width: $px;

   margin: {
      left: auto;
      right: auto;
   }

   ;
}
body {
   background: #ededed;
   color: #666;
   font-size: 14px;
}
.goods-menu{
   @include center();
   margin-top: 25px;
   &-a{
      color: #999;
      font-size: 12px;
      margin-right: 20px;
   }
   .click-a{
      color: #5683ea;
   }
   p{
      display: inline-block;
      float: right;
      margin-right: 20px;
      cursor: pointer;
      width: 22px;
      height: 22px;
      box-sizing: border-box;
      background-color: #fff;
      border: 1px solid #e4e4e4;
      border-radius: 50%;
      text-align: center;
      line-height: 16px;
      font-size: 25px;
      color: #878787
   }
   .noClick{
      background-color: #fbfbfb;
      color: #d5d5d5;
      
   }
}  
main{
   min-height: 540px;
   @include center(1220px);
   box-sizing: border-box;
   background-color: white;
   // display: flex;
   display: flex;
   flex-wrap: wrap;
   margin-top: 25px;
}
.goods{
   cursor: pointer;
   box-sizing: border-box;
   width: 20%;
   border-right: 1px solid #efefef;
   border-bottom: 1px solid #efefef;
   height: 375px;
   background-color: white;
   text-align: center;
   // float: left;
   &:hover{
      background:rgba(0, 0, 0, .1);
   }
   &-img{
      margin: 0 auto;
      width: 243;
      height: 224px;
      // background-color: plum;
      position: relative;
      img{
         width: 204px;
         height: 204px;
         position: absolute;
         left: 0;
         right: 0;
         bottom: 0;
         top: 0;
         margin: auto;
      }
      span{
         position: absolute;
         right: 10px;
         top: 10px;
         z-index: 1;
         width: 40px;
         height: 17px;
         text-align: center;
         line-height: 17px;
         border: 1px solid #999;
         border-radius: 20px;
         font-size: 12px;
         font-weight: 600;
      }
   }
   h3{
      margin-top: 20px;
      font-size: 14px;
      color: #333;
      font-weight: 700;
      padding: 0 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
   }
   h5{
      font-size: 12px;
      color: #999;
      margin-top: 15px;
      font-weight: 400;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 0 25px;
   }
   &-text{
      margin-top: 40px;
      p{
         display: inline-block;
         font-family: Arial;
         font-size: 18px;
         font-weight: bolder;
         color: #d44d44;
      }
      del{
         padding-left: 10px;
         font-weight: 400;
         color: #ccc;
         font-size: 12px;
      }
   }
}
.noSearch{
   width: 500px;
   height: 250px;
   // background-color: blue;
   position: absolute;
   left: 0;
   top: 0;
   bottom: 0;
   right: 0;
   margin: auto;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
   display: none;
   h2{
      margin-top: 50px;
   }
   img{
      display: block;
   }
}
